//--------------------------------------------------------------------
//     Author:Howe
//     Date: 2021-04-13 21:43:59 
//     Description:对此文件的更改可能会导致不正确的行为，并且如果重新生成代码，这些更改将会丢失。
//--------------------------------------------------------------------
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel;

namespace Kylin.Wiki.Model.Entity
{
    ///<summary>
    ///sys_Attachment
    ///</summary>
    [Table("sys_attachment")]
    public class Attachment:BaseEntity
    {

        /// <summary>
        /// ID
        /// </summary>
        [Key]
        [Required]
        [DisplayName("ID")]
        [Column("id")]
        public int ID { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        [DisplayName("用户ID")]
        [Column("user_id")]
        public int? UserID { get; set; }

        /// <summary>
        /// 文档ID
        /// </summary>
        [Required]
        [DisplayName("文档ID")]
        [Column("document_id")]
        public int DocumentID { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [DisplayName("名称")]
        [Column("file_name")]
        public string FileName { get; set; }

        /// <summary>
        /// 名称路径
        /// </summary>
        [DisplayName("名称路径")]
        [Column("file_path")]
        public string FilePath { get; set; }

        /// <summary>
        /// 文件后缀
        /// </summary>
        [DisplayName("文件后缀")]
        [Column("file_ext")]
        public string FileExt { get; set; }

        /// <summary>
        /// 文件真实路径
        /// </summary>
        [DisplayName("文件真实路径")]
        [Column("storage_path")]
        public string StoragePath { get; set; }
         

    }
}
